﻿using Abp.Domain.Entities.Auditing;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace App.Configuration
{
    /// <summary>
    /// 功能权限
    /// </summary>
    public class MenuPermission : AuditedEntity
    {
        public virtual int? ParentId { get; set; }
        [StringLength(30)]
        public virtual string MenuText { get; set; }
        [StringLength(256)]
        public virtual string MenuLink { get; set; }
        public virtual int SortOrder { get; set; }
        [StringLength(10)]
        public virtual string MenuType { get; set; }
        public virtual string IconCls { get; set; }
        [StringLength(10)]
        public virtual string IsActivated { get; set; }
        public virtual bool AutoCreated { get; set; }
        public virtual bool IsHostTenant { get; set; }
        [ForeignKey("ParentId")]
        public virtual ICollection<MenuPermission> ChildMenuPermissions { get; set; }
    }
}
